Technical troubleshooting - frontend issues.
<head>
section of the HTML:
common.js
, instantsearch.js
, and autocomplete.js
.
window.algoliaConfig
variable just after the <head>
section.
This variable fetches all the Algolia configurations coming from the Magento back-office.
name="q"
in the source code:
the input should have algolia-search-input
in its class attribute.
algoliaConfig
, then press Enter
.
The console will display all your Magento configurations.
Use this console output to check if your frontend is up to date with the latest modifications you made in the backend.
Clearing the cache may help, but be aware of image issues.
algolia
is not definedUncaught ReferenceError: algolia is not defined
To resolve this, adjust your custom hooks to load dependencies through RequireJS.
define()
module<script>
tags, you’ll likely encounter the following error:
Uncaught Error: mismatched anonymous define() module
To resolve this, remove <script>
tag references in the <head>
section of your layout XML, such as:
requirejs-config.js
as described under Where to place your hook.
For more information about common errors, see the official RequireJS documentation.